package cate.common.table.farm.spicefb.row;

import cate.common.table.ERow;
import cate.common.table.XSSFRowWrap;
import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;

@NoteClass(value = "水晶峡谷章节")
public class SpiceFbChapterRow extends ERow {

    @NoteField(value = "解锁下一章星级")
    public int starRequired;

    @NoteField(value = "开服天数")
    public int openday;

    @NoteField(value = "世界之树等级")
    public int worldTreeLevel;

    public String chapterRewardStr;

    @Override
    public void parse(XSSFRowWrap xrw) {
        super.parse(xrw);
        this.id = xrw.getInteger("ID");
        this.starRequired = xrw.getInteger("解锁下一章星级（星级）", 0);
        this.openday = xrw.getInteger("开服天数（星级）", 0);
        this.worldTreeLevel = xrw.getInteger("世界树等级", 0);
        this.chapterRewardStr = xrw.getString("完美奖励");
    }

    @Override
    public void decode() {}
}
